{% load codalab_tags %}

{#<h1>Submit or view results</h1>#}

<div id="submissions_phase_buttons">
  {% for phase in competition.phases.all %}
    {% if phase == active_phase %}
      <!-- active, dont change bg color -->
        <button class="btn active phase-btn-{{ phase.color }} btn-sm" id="submissions_phase_{{phase.id}}">{{phase.label}}</button>
    {% else %}
        <button class="btn phase-btn-{{ phase.color }} btn-sm" id="submissions_phase_{{phase.id}}">{{phase.label}}</button>
    {% endif %}
  {% endfor %}
</div>

<div class="competition_submissions">
</div>
